import {
	mapMutations
} from 'vuex'

export default {
	...mapMutations([
		'upIndexInfo',
	]),
	getPageList() {
		let that = this
		that.$httpRequest.request({
			that: that,
			url: 'wechat/getVisitInformationList',
			method: 'get',
			params: {
				pageNo: that.page,
				pageSize: that.list_rows,
			},
			success: res => {
				that.loading = false
				if (res.code === that.$httpConfig.SUCCESS_CODE) {
					console.log(res.data)
					if (that.page === 1) {
						that.list = res.data.rows
					} else {
						that.list = that.list.concat(res.data.rows)
					}
					that.page++
				} else {

				}
			}
		}, false)
	},
}